<template>
  <el-carousel class="Fg-Swipe" v-bind="$attrs" :style="newStyle" :height="newStyle.height">
    <el-carousel-item v-for="(item,i) in resData" :key="i">
      <img :src="item.path" :alt="item.name" />
    </el-carousel-item>
  </el-carousel>
</template>

<script>
import { comMixin } from "../../../utils/comMixins";
export default {
  name: "form-swipe",
  mixins: [comMixin],
};
</script>

<style lang="scss" >
.Fg-Swipe {
  .el-carousel__item {
    color: #475669;
    font-size: 14px;
    opacity: 0.75;
    // line-height: 150px;
    margin: 0;
    text-align: center;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
  }
  .el-carousel__item:nth-child(2n + 1) {
    background-color: #d3dce6;
  }
  z-index: 1;
}
</style>